/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class ButtonPanel {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010080042';
    }

    get categoryName() {
        return '\u591a\u529f\u80fd\u6309\u952e';
    }

    getDigitString(params) {
        return command({
            method: 'getDigitString',
            methodId: 'pZguAy3q',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getDuration(params) {
        return command({
            method: 'getDuration',
            methodId: 'ppAXNOex',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getNumber(params) {
        return command({
            method: 'getNumber',
            methodId: 'pUPQZjDb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getType(params) {
        return command({
            method: 'getType',
            methodId: 'peH32f7G',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default ButtonPanel;
